#include "netcli.hpp"
#include "nlohmann/json.hpp"
#include <arpa/inet.h>
#include <cstring>
#include <iostream>
#include <netinet/in.h>
#include <sys/socket.h>
#include <unistd.h>

#define BUFFER_SIZE 1024

int main()
{
    int cnt = 0;
    char buffer[BUFFER_SIZE];
    char ip[16] = "192.168.171.11";

    netcli cli(ip, 8091);

    while (true) {
        cli.netrecv(buffer, BUFFER_SIZE);
        std::cout << buffer << std::endl;
    }

    return 0;
}
